package com.csun.cmny.provider.service.impl;

import com.csun.cmny.core.support.BaseService;
import com.csun.cmny.provider.dao.OmcContractMapper;
import com.csun.cmny.provider.model.domain.OmcContract;
import com.csun.cmny.provider.model.dto.contract.ContractQueryDto;
import com.csun.cmny.provider.model.vo.contract.ContractVo;
import com.csun.cmny.provider.service.OmcContractService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;


@Slf4j
@Service
@Transactional(rollbackFor = Exception.class)
public class OmcContractServiceImpl extends BaseService<OmcContract> implements OmcContractService {

    @Resource
    private OmcContractMapper omcContractMapper;

    @Override
    public List<ContractVo> selectContract(ContractQueryDto contractQueryDto) {
        return omcContractMapper.selectContract(contractQueryDto);
    }
}
